package com.atguigu.b_random;
/*
    tips : java.lang包下的类使用不需要导包
 */
public class Demo1 {
    public static void main(String[] args) {
        double num = Math.random();

        System.out.println("num = " + num);

        System.out.println("--------------------");
        //[21,79]
        int num1 = (int)(Math.random() * (59) + 21);
        System.out.println("num1 = " + num1);
    }
}
